$(function() {
	// there's no CSS pseudoclass for the mousedown part of clicking a button. This adds mousedown as a classname on all elements when the mouse is down.
	// and using $.live(), it includes elements that are added to the DOM after the page is loaded
	var addMouseDown = function() {
		curEl = this;
		$(this).addClass('mousedown').data('mousedown',true);
	}
	var removeMouseDown = function() {
		$(this).removeClass('mousedown');
	}
	$('body, body *').live('mousedown', addMouseDown);
	$('body, body *').live('mouseout mouseup', removeMouseDown);
});